package com.hivclassifier.utils;

import javax.swing.JTextArea;

public class Logger {

	public static final boolean IS_DEBUG = false;
	
	public JTextArea logger;

	private static Logger instance;

	public static Logger getInstance() {
		if (instance == null) {
			instance = new Logger();
		}
		return instance;
	}

	public void setLogger(JTextArea logger) {
		this.logger = logger;
		logger.setText("Welcome to the HIV-1 coreceptor classifier\n\n"
				+ "\n"
				+ "HINTS\n\n"
				+ "All files used for training the classifier should be in .arff format using WEKA 3.6.0 (or latter).\n\n"
				+ "");
	}

	public void doLog(String logLine) {
		logger.append(logLine);
	}
}
